package com.Lyy.entity;

import java.util.Arrays;
import java.util.List;

public class Teacher {
    private String TeacherName;
    private Course[] TeacherCourse;
    private List<Student> TeacherStudent;

    public Teacher() {
    }

    public Teacher(String teacherName, Course[] teacherCourse, List<Student> teacherStudent) {
        TeacherName = teacherName;
        TeacherCourse = teacherCourse;
        TeacherStudent = teacherStudent;
    }

    public String getTeacherName() {
        return TeacherName;
    }

    public void setTeacherName(String teacherName) {
        TeacherName = teacherName;
    }

    public Course[] getTeacherCourse() {
        return TeacherCourse;
    }

    public void setTeacherCourse(Course[] teacherCourse) {
        TeacherCourse = teacherCourse;
    }

    public List<Student> getTeacherStudent() {
        return TeacherStudent;
    }

    public void setTeacherStudent(List<Student> teacherStudent) {
        TeacherStudent = teacherStudent;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "TeacherName='" + TeacherName + '\'' +
                ", TeacherCourse=" + Arrays.toString(TeacherCourse) +
                ", TeacherStudent=" + TeacherStudent +
                '}';
    }

    public void tsc(){
        System.out.println(this.TeacherName+"\nhave\n"+this.TeacherCourse+"\nand\n"+this.TeacherStudent);
    }
}
